package com.echo.echovividlive.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiajunjie
 * @since 2024-11-26
 */
@Data
@TableName("live_room")
public class LiveRoom implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "room_id", type = IdType.AUTO)
    private Integer roomId;

    /**
     * 主播id
     */
    private Integer userId;

    /**
     * 直播源
     */
    private String url;

    /**
     * 上次直播时间
     */
    private LocalDateTime createTime;

    /**
     * 直播预告
     */
    private String preview;

    /**
     * 是否开播
     */
    private Boolean status;

    /**
     * 推流码
     */
    private String pushStreamCode;

    /**
     * 标签
     */
    private String tag;

    private String cover;
}
